package com.youhome.service.service;

import com.github.pagehelper.PageInfo;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.BTemplateHtmlSelected;
import com.youhome.service.model.Principal;

/**
 * Created by chen365 on 2018/1/8.
 */
public interface BTemplateHtmlSelectedService {

    int insertSelective(BTemplateHtmlSelected record);

    BTemplateHtmlSelected selectByPrimaryKey(Long id);

    int updateStatus(BTemplateHtmlSelected record);

    int save(BTemplateHtmlSelected entity);

    void publishUnPublish(Principal principal, Long id) throws CustomException;

    void submitAudit(Principal principal, Long id) throws CustomException;

    BTemplateHtmlSelected previewSecondaryHomePage(Principal principal, Long id) throws CustomException;

    PageInfo<BTemplateHtmlSelected> selectByBean(Principal principal, Integer status, Integer pageNumber, Integer pageSize) throws CustomException;

    BTemplateHtmlSelected selectIssueByUUID(String uuid) throws CustomException;

    void save(Principal principal,String data) throws CustomException;
}
